home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
051-075
/
disk_068
/
mg1b
/
startup.doc
< prev
next >
Wrap
Text File
|
1992-05-06
|
2KB
|
66 lines
THE STARTUP FILE
----------------
If the STARTUP option has been compiled into MG, you can use a file
of startup commands that rebind the keys and otherwise set up the
editor as you see fit.
The name and location of the startup file will vary depending on
which system you are running MicroGnuEmacs on. Check the documentation
for your system.
The basic idea is that you are issuing M-X commands; the first line
in the example startup file below would be interpreted as "<ESC>x
bsmap-mode<RET>". Spaces are necessary to separate the parts of the
command, but the quotation marks are there mainly for effect. If you
happen to use GNU Emacs on a larger system, the startup file routines
can also read your ".emacs" file, as long as the functions you call in
the ".emacs" file are available in MicroGNUEmacs.
The escape conventions for specifying keys in startup files are:
\^ next character is a control character
\e next character is an escape (meta) character
\fnn function key (where nn is a 1- or 2-digit decimal number)
\n newline
\t tab
\r carriage return
\\ backslash character
A '\' followed by anything else means "quote this character
as-is".
A '\' followed by anything else means "quote this character as-is".
REDEFINING FUNCTION KEYS
------------------------
If mg on your system supports function keys, information on rebinding
them can be found in the doc files for that system.
EXAMPLE STARTUP FILE
--------------------
Finally, here's a startup file that gives an example of rebinding
keys, starting modes, giving arguments to functions, and making MG
show you matching parentheses, brackets, and braces.
--------------------------------CUT HERE---------------------------------
auto-fill-mode
set-fill-column 72
blink-matching-paren
global-set-key "}" blink-matching-paren-hack
global-set-key "]" blink-matching-paren-hack
global-set-key "\^l" redraw-display
global-set-key "\e\^h" backward-kill-word
global-set-key "\^h" backward-delete-char
global-set-key "\^x\^v" find-file
global-set-key "\eg" goto-line
global-set-key "\f1" insert-file
global-set-key "\f2" insert-buffer
---------------------------------CUT HERE-------------------------------------